#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL.Math;
namespace Cephei.QL.Math.Optimization
{
     // <summary> 
	// ! Constrained optimization problem
	// </summary>
    [Guid ("75797503-B9D7-40b1-B313-00E4065FE102"),ComVisible(true)]
	public interface IProblem 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Cephei.QL.Math.Optimization.IConstraint Constraint {get;}
        
		 Cephei.QL.Math.Optimization.ICostFunction CostFunction {get;}
        
		 Cephei.QL.Math.IArray CurrentValue {get;}
        
		 Int32 FunctionEvaluation {get;}
        
		 Double FunctionValue {get;}
        
		 IProblem Gradient(Cephei.QL.Math.IArray grad_f, Cephei.QL.Math.IArray x);
        
		 Int32 GradientEvaluation {get;}
        
		 Double GradientNormValue {get;}
        
		 IProblem Reset {get;}
        
		 IProblem SetCurrentValue(Cephei.QL.Math.IArray currentValue);
        
		 IProblem SetFunctionValue(Double functionValue);
        
		 IProblem SetGradientNormValue(Double squaredNorm);
        
		 Double Value(Cephei.QL.Math.IArray x);
        
		 Double ValueAndGradient(Cephei.QL.Math.IArray grad_f, Cephei.QL.Math.IArray x);
    }

    // <summary> 
	// ! Constrained optimization problem Factory
	// </summary>
   	[ComVisible(true)]
    public interface IProblem_Factory // : Collection_Factory<IProblem, ICell<IProblem>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        
	    IProblem Create (Cephei.QL.Math.Optimization.ICostFunction costFunction, Cephei.QL.Math.Optimization.IConstraint constraint, Microsoft.FSharp.Core.FSharpOption<Cephei.QL.Math.IArray> initialValue);
    }
}

